<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<title>问卷制作</title>
<%@include file="/WEB-INF/jsp/public/commons.jspf"%>
<script src="http://code.jquery.com/jquery-migrate-1.1.1.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/script/jquery.form.js"></script>
</head>
<body>
<ol class="breadcrumb">
  <li><a href="#">问卷管理</a></li>
  <li><a href="questionnaire_list.action">问卷列表</a></li>
  <li class="active">查看问卷</li>
</ol>
<div class="well well-lg container">
	<!-- 问卷标题显示 -->
	<div class="page-header text-center">
	    <h1>${questionnaire.title}<br/>&nbsp;&nbsp;&nbsp;
	        <small>${questionnaire.description}</small>
	    </h1>
	</div>
	<p class="text-info text-right">已有${questionnaire.fillCount}人参与调查</p>
	<!-- 显示题目信息 -->
	<s:iterator value="questionList" status="status">
		<div style="margin-bottom:20px;">
			<p class="lead">${status.count}、${title}</p>
			<s:iterator value="options">
				<label class='checkbox-inline'>
					<input type='radio'/>${content}
				</label>
				<c:if test="${optionCount!=0}">
				<span style="color:red;">
					<fmt:formatNumber type="percent" value="${optionCount/questionnaire.fillCount}"></fmt:formatNumber>
				</span>
				</c:if>
			</s:iterator>
		</div>
	</s:iterator>
</div>
</body>
</html>